]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
baseIcon: Always recreate icon texture on style changes
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 27 Mar 2012 17:38:23 +0000 (19:38 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 13 Apr 2012 09:12:24 +0000 (11:12 +0200)
Commit 26580f8f reintroduced an optimization on style changes to avoid
creating icons unconditionally. As this breaks icon theme changes (for
instance when toggling "High Contrast" in the universal access menu),
remove it again.

https://bugzilla.gnome.org/show_bug.cgi?id=672941

js/ui/iconGrid.js

index 54b792a077ead8711fc46a4a11a35e5aab0c1917..ef71bc7a040502c2443b8fb9d00a59215952fd47 100644 (file)
@@ -146,11 +146,6 @@ const BaseIcon = new Lang.Class({
             size = found ? len : ICON_SIZE;
         }
 
-        // don't create icons unnecessarily
-        if (size == this.iconSize &&
-            this._iconBin.child)
-            return;
-
         this._createIconTexture(size);
     }
 });